#include"AVL.h"
#include"RBTree.h"

int main()
{
	//int a[] = { 16, 3, 7, 11, 9, 26, 18, 14, 15 };
	////	int a[] = { 4, 2, 6, 1, 3, 5, 15, 7, 16, 14 };

	//AVL::AVL<int, int> avl;
	//for (auto e : a)
	//{
	//	avl.insert(make_pair(e, e));
	//	cout << avl.is_balance() << endl;;
	//}
	int b[] = { 16, 3, 7, 11, 9, 26, 18, 14, 15 };
	//	int a[] = { 4, 2, 6, 1, 3, 5, 15, 7, 16, 14 };

	RBTree::RBTree<int, int> rbt;
	for (auto e : b)
	{
		rbt.insert(make_pair(e, e));
		cout << rbt.is_balance() << endl;;
	}

	return 0;
}